package com.guangyunl.g_objectarray;
// 定义学生类Student
// 声明姓名和成绩成员变量
public class Student {
    // 学生姓名
    private String name;
    // 学生成绩
    private int score;

    public Student() {
    }

    public Student(String name, int score) {
        this.name = name;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
